package DTO;
import WebService.*;
import android.app.Activity;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
public class Product extends Activity{
	
	   private int ProductID;
       private String ProductName;
       private int Category;
       private int Supplier;
       private int QuantityPerUnit;
       private float PricePerUnit;
       private String Location;
       private String Barcode;
       private int UnitInStock;
       private int UnitOnOrder;
       private byte[] Image;
       private int Discontinued;
       
       public Product(){}
       public Product(int ProductID,String Name,int Category,int Supplier,
    		   int QuantityPerUnit, float PricePerUnit,String Barcode,String location,
    		   int UnitInStock,int UnitOnOrder,byte[]Image,int Discontinued) 
           {
               this.setProductID(ProductID);
               this.setProductName(Name);
               this.setCategory(Category);
               this.setSupplier (Supplier);
               this.setQuantityPerUnit(QuantityPerUnit);
               this.setPricePerUnit(PricePerUnit);
               this.setBarcode ( Barcode);
               this.setLocation (location);
               this.setUnitInStock(UnitInStock);
               this.setUnitOnOrder (UnitOnOrder);
               this.setImage (Image);
               this.setDiscontinued ( Discontinued);
           }
       
	private String getBarcode() {
		return Barcode;
	}
	private void setBarcode(String barcode) {
		Barcode = barcode;
	}
	private int getProductID() {
		return ProductID;
	}
	private void setProductID(int productID) {
		ProductID = productID;
	}
	private String getProductName() {
		return ProductName;
	}
	private void setProductName(String productName) {
		ProductName = productName;
	}
	private int getCategory() {
		return Category;
	}
	private void setCategory(int category) {
		Category = category;
	}
	private int getSupplier() {
		return Supplier;
	}
	private void setSupplier(int supplier) {
		Supplier = supplier;
	}
	private String getLocation() {
		return Location;
	}
	private void setLocation(String location) {
		Location = location;
	}
	private float getPricePerUnit() {
		return PricePerUnit;
	}
	private void setPricePerUnit(float pricePerUnit) {
		PricePerUnit = pricePerUnit;
	}
	private int getQuantityPerUnit() {
		return QuantityPerUnit;
	}
	private void setQuantityPerUnit(int quantityPerUnit) {
		QuantityPerUnit = quantityPerUnit;
	}
	private int getUnitOnOrder() {
		return UnitOnOrder;
	}
	private void setUnitOnOrder(int unitOnOrder) {
		UnitOnOrder = unitOnOrder;
	}
	private int getDiscontinued() {
		return Discontinued;
	}
	private void setDiscontinued(int discontinued) {
		Discontinued = discontinued;
	}
	private byte[] getImage() {
		return Image;
	}
	private void setImage(byte[] image) {
		Image = image;
	}
	private int getUnitInStock() {
		return UnitInStock;
	}
	private void setUnitInStock(int unitInStock) {
		UnitInStock = unitInStock;
	}

}
